package com.zrrd.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zrrd.model.product.BaseAttrInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BaseAttrInfoMapper extends BaseMapper<BaseAttrInfo> {

    //根据分类id获取属性列表以及对应的属性值列表
    List<BaseAttrInfo> getBaseAttrInfo(@Param("category1Id") Long category1Id,
                                       @Param("category2Id") Long category2Id,
                                       @Param("category3Id") Long category3Id);

    //根据skuid查询对应的平台属性以及属性值
    List<BaseAttrInfo> getBaseAttrInfoBySkuId(Long skuId);


}
